package command;

/**
 * 命令实现
 */
public class CommandB implements Command{
    private CmdProcess process;

    public CommandB(CmdProcess process) {
        this.process = process;
    }

    @Override
    public void cook() {
        System.out.println("B类命令调调用");
        process.doCooking();
    }
}
